<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏练习</title>
    <style>
        *{
            padding: 0px;
            margin: 0px;
        }
        ul li{
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        ul li a{
            color: black;
        }
        .nav{
            width: 100%;
            background: #bfa;
        }
        .box{
            width: 1000px;
            height: 60px;
            background: green;
            margin:0 auto;
        }
        .nav1{
            height: 60px;
        }
        .nav11{
            display: inline-block;
            /*background: #F56600;*/
            line-height: 60px;
            height: 60px;
            padding-left: 15px;
            padding-right: 2px;
        }
        .nav1>li>a{
            float: left;
        }

        .nav2{
            clear:both;
            float: left;
        }
        .nav2>.nav21{
            /*background: #336699;*/
            display: none;
        }
        .nav2>li>a{
            /*background: orange;*/
            width: 12px;
            height: 12px;
        }
        .nav21{
            line-height: 20px;
        }
        .nav21>a{
            font-size: 15px;
        }
        .nav1>li:hover>ul>.nav21{
            display: block;
        }
        .nav30>li{
            position: relative;
            left: 5px;
            /*top:-12px;*/
            /*background: red;*/
            display: none;
            font-size: 12px;
        }
        .nav2>li:hover>ul>li{
            display: block;
        }
        .nav30{
            float: right;
        }
    </style>
</head>
<body>
<div class="nav">
        <div class="box">
            <ul class="nav1">
                <li class="nav11">
                    <a href="#">主体市场</a>
                    <ul class="nav2">
                        <li class="nav21">
                            <a href="">女装</a>
                            <ul class="nav30">
                                <li>衣服</li>
                                <li>上衣</li>
                                <li>袜子</li>
                            </ul>
                        </li>
                        <li class="nav21">
                            <a href="">男装</a>
                            <ul class="nav30">
                                <li>鞋</li>
                                <li>帽子</li>
                                <li>裤子</li>
                            </ul>
                        </li>
                        <li class="nav21">
                            <a href="">童装</a>
                        </li>
                    </ul>
                </li>
                <li class="nav11">
                    <a href="#">天猫</a>
                </li>
                <li class="nav11">
                    <a href="#">聚划算</a>
                </li>
                <li class="nav11">
                    <a href="#">天猫超市</a>
                </li>
                <li class="nav11"><a href="#">淘抢购</a></li>
                <li class="nav11"><a href="#">电器城</a></li>
                <li class="nav11"><a href="#">司法买卖</a></li>
                <li class="nav11"><a href="#">淘宝心选</a></li>
                <li class="nav11"><a href="#">兴农脱贫</a></li>
                <li class="nav11"><a href="#">飞猪旅行</a></li>
                <li class="nav11"><a href="#">智能生活</a></li>
                <li class="nav11"><a href="#">苏宁易购</a></li>
            </ul>
        </div>
</div>
</body>
</html>